﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace EMoney.IStock.Client.Models.MC
{
    /// <summary>
    /// 任务信息
    /// </summary>
    [Serializable]
    public class MC_TaskInfo
    {
        /// <summary>
        /// 任务编号
        /// </summary>
        public int TaskID { get; set; }
        /// <summary>
        /// 名称
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// IconUrl
        /// </summary>
        public string IconUrl { get; set; }
        /// <summary>
        /// 奖励i豆数量
        /// </summary>
        public int iNum { get; set; }
        /// <summary>
        /// 类型（1：单次任务 2：日常任务）
        /// </summary>
        public int Type { get; set; }
        /// <summary>
        /// 描述
        /// </summary>
        public string Description { get; set; }
        /// <summary>
        /// 是否开启
        /// </summary>
        public bool IsOpen { get; set; }
        /// <summary>
        /// 是否引导完成
        /// </summary>
        public bool IsGo { get; set; }
        /// <summary>
        /// 跳转链接
        /// </summary>
        public string LinkUrl { get; set; }
        /// <summary>
        /// 开始时间
        /// </summary>
        public DateTime? BeginTime { get; set; }
        /// <summary>
        /// 结束时间
        /// </summary>
        public DateTime? EndTime { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }
        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime UpdateTime { get; set; }

        /// <summary>
        /// 完成时间
        /// </summary>
        public DateTime CompletedTime { get; set; }

        /// <summary>
        /// 任务完成条件
        /// </summary>
        public List<MC_TaskCondition> TaskConditionList { get; set; }
    }

    /// <summary>
    /// 完成任务返回信息
    /// </summary>
    [Serializable]
    public class MC_CompleteTaskRet
    {
        public int tid { get; set; }
        public int inum { get; set; }
        public string name { get; set; }
    }

    /// <summary>
    /// 任务类型
    /// </summary>
    [Serializable]
    public enum MC_TaskType
    { 
        /// <summary>
        /// 单次任务
        /// </summary>
        Single = 1,
        /// <summary>
        /// 日常任务
        /// </summary>
        Daily = 2
    }

    /// <summary>
    /// 任务编号
    /// </summary>
    [Serializable]
    public enum MC_TaskID
    {
        /// <summary>
        /// 连登任务
        /// </summary>
        ContinueLogin = 18,
        /// <summary>
        /// 交易时段在线半小时
        /// </summary>
        HalfHour = 11,
        /// <summary>
        /// 交易时段在线一小时
        /// </summary>
        OneHour = 12,
        /// <summary>
        /// 交易时段在线两小时
        /// </summary>
        TowHours = 13,
        /// <summary>
        /// 连续三天参加K线英雄游戏
        /// </summary>
        KContinueGame = 19,
        /// <summary>
        /// K线英雄累计赢三局
        /// </summary>
        kGameCount = 20
    }
}
